<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>JAVA</title>
</head>
<body style="margin: 0">
<h1 style="margin: 0">这是我的后端</h1>
<a href="login.html">跳转到login页面</a><br>
<a href="hello.html">跳转到Hello页面</a><br>
<a href="home.html">跳转到Home页面</a>
<a href="ano/there.html">There页面</a>
<a href="here.html">Here页面</a>
<form method="get" action="get">
    <label>Name:<input name="name" type="text"></label>
    <label>Pass:<input name="pass" type="password"></label>
    <input type="submit" value="GET提交">
</form>
<form method="post" enctype="multipart/form-data" action="post">
    <label>Name:<input name="name" type="text"></label>
    <label>Pass:<input name="pass" type="password"></label>
    <input type="file" name="aaaa">
    <input type="submit" value="mutipart提交">
</form>
<form method="post" action="post">
    <label>Name:<input name="name" type="text"></label>
    <label>Pass:<input name="pass" type="password"></label>
    <input type="submit" value="POST提交">
</form>
<div id="file_list"></div><button onclick="getFileList()">点我获取文件列表</button>
</body>
<script>
    function getFileList() {
        let xhr = new XMLHttpRequest();
        xhr.open("get","file",true);
        xhr.send();
        xhr.onreadystatechange = () => {
            if (xhr.readyState===4&&xhr.status===200){
                console.log(JSON.parse(xhr.response));
            }
        }
    }
</script>
</html>